package org.lg.consumer;


import org.lg.framework.Invocation;
import org.lg.framework.protocol.HttpClient;
import org.lg.service.TeamService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


//@SpringBootApplication
public class ConsumerApplication {

    public static void main(String[] args) {
        //SpringApplication.run(ConsumerApplication.class, args);
        //方法名后面换乘配置
        Invocation invocation = new Invocation(TeamService.class.getName(),"getAllTeam",null,null);
        HttpClient httpClient = new HttpClient();
        //后面换乘配置
        Object obj = httpClient.send("localhost",8089,invocation);
        System.out.println(obj);
    }

}
